package com.jinglu.cloud.common.event;

import com.google.common.eventbus.EventBus;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author lvzhenzhao
 * @Datetime 2021/03/02-下午2:27
 */
@Configuration
public class EventBusConfig {
    //定义事件总线bean
    @Bean
    public EventBus eventBus() {
        return new EventBus();
    }
}
